home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 30 / Mac Magazin and MacEasy Magazine CD - Issue 30.iso / utilities / Mac OS X / Load_Monitor / src / Preferences.h < prev    next >
Encoding:
Text File  |  2001-12-18  |  2.3 KB  |  75 lines

  1. /*
  2.  *    Load Monitor
  3.  *
  4.  *    Copyright © 2001 Alexandre Vial, some parts from Bernhard Baehr
  5.  *
  6.  *    Preferences.h - Preferences Controller Class
  7.  *
  8.  *    This program is free software; you can redistribute it and/or modify
  9.  *    it under the terms of the GNU General Public License as published by
  10.  *    the Free Software Foundation; either version 2 of the License, or
  11.  *    (at your option) any later version.
  12.  *
  13.  *    This program is distributed in the hope that it will be useful,
  14.  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16.  *    GNU General Public License for more details.
  17.  *
  18.  *    You should have received a copy of the GNU General Public License
  19.  *    along with this program; if not, write to the Free Software
  20.  *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  21.  */
  22.  
  23.  
  24. #import <Cocoa/Cocoa.h>
  25.  
  26.  
  27. #define WIRED_COLOR_KEY        @"WiredColor"
  28. //#define ACTIVE_COLOR_KEY    @"ActiveColor"
  29. //#define INACTIVE_COLOR_KEY    @"InactiveColor"
  30. #define FREE_COLOR_KEY        @"FreeColor"
  31. #define PAGEIN_COLOR_KEY    @"PageinColor"
  32. #define PAGEOUT_COLOR_KEY    @"PageoutColor"
  33. #define TRANSPARENCY_KEY    @"Transparency"
  34. #define UPDATE_FREQUENCY_KEY    @"UpdateFrequency"
  35. #define PAGING_SCALE_MAX_KEY    @"PagingScaleMax"
  36. #define PAGEIN_ATOP_PAGEOUT_KEY    @"PageinAtopPageout"
  37. #define SHOW_PAGING_RATE_KEY    @"ShowPagingRate"
  38. #define SHOW_GRAPH_WINDOW_KEY    @"ShowGraphWindow"
  39. #define GRAPH_WINDOW_ON_TOP_KEY    @"GraphWindowOnTop"
  40. #define GRAPH_WINDOW_SIZE_KEY    @"GraphWindowSize"
  41.  
  42. #define PREFERENCES_CHANGED    @"PrefsChanged"
  43.  
  44.  
  45. @interface Preferences : NSObject
  46. {
  47.     IBOutlet id        wiredColor;
  48. //    IBOutlet id        activeColor;
  49. //    IBOutlet id        inactiveColor;
  50.     IBOutlet id        freeColor;
  51.     IBOutlet id        pageinColor;
  52.     IBOutlet id        pageoutColor;
  53.     IBOutlet id        pageinAtopPageout;
  54.     IBOutlet id        transparency;
  55.     IBOutlet id        pagingScale;
  56.     IBOutlet id        panel;
  57.     IBOutlet id        showPagingRate;
  58.     IBOutlet id        updateFrequency;
  59.     IBOutlet id        updateFrequencySlider;
  60.     IBOutlet id        showGraphWindow;
  61.     IBOutlet id        graphWindowOnTop;
  62.     IBOutlet id        graphWindowSize;
  63.     IBOutlet id        graphWindowOptionsView;
  64.     NSMutableDictionary    *currentSettings;
  65. }
  66.  
  67. - (IBAction)showPreferences:(id)sender;
  68. - (IBAction)revertToDefaults:(id)sender;
  69. - (IBAction)preferencesChanged:(id)sender;
  70. - (void)savePreferences;
  71. - (id)objectForKey:(id)key;
  72. - (int)windowNumber;
  73.  
  74. @end
  75.